Skip to content

[BWARE] Add HashMapIntToInt primitive int-to-int hash map#2478

Merged
Baunsgaard merged 3 commits into
apache:mainfrom
Baunsgaard:split/hashMapIntToInt
Jun 9, 2026
Merged

[BWARE] Add HashMapIntToInt primitive int-to-int hash map#2478
Baunsgaard merged 3 commits into
apache:mainfrom
Baunsgaard:split/hashMapIntToInt

Conversation

@Baunsgaard

Copy link
Copy Markdown
Contributor

Introduce a specialized open-addressing map storing primitive int keys and values, avoiding boxing for integer-to-integer lookups used by compressed column-group operations.

Introduce a specialized open-addressing map storing primitive int keys and values, avoiding boxing for integer-to-integer lookups used by compressed column-group operations.
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.41%. Comparing base (88c26e2) to head (70205aa).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2478      +/-   ##
============================================
+ Coverage     71.37%   71.41%   +0.03%     
- Complexity    48749    48827      +78     
============================================
  Files          1571     1572       +1     
  Lines        188912   189059     +147     
  Branches      37067    37097      +30     
============================================
+ Hits         134845   135024     +179     
+ Misses        43601    43567      -34     
- Partials      10466    10468       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Cover put/get, putIfAbsent variants, collision chains, resize,
iteration, and the primitive -1 absent-sentinel contract.
The entry iterator advanced bucketId twice per empty bucket (pre-increment
in the loop condition plus the post-increment step), skipping entries when
buckets were unevenly filled. Dense sequential keys masked it because the
first probe always hit a non-null bucket. Add randomized tests that
cross-check against java.util.HashMap to cover imbalanced bucket layouts,
plus a chained-collision resize test, reaching full branch coverage.
@Baunsgaard Baunsgaard merged commit c58e5b5 into apache:main Jun 9, 2026
86 of 87 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in SystemDS PR Queue Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant